package com.tsd.jxc.buy.service;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.buy.entity.JxcBuyReturnBillDetail;
import com.tsd.jxc.buy.entity.JxcBuyReturnBillDetailExt;
import com.tsd.jxc.buy.entity.JxcBuyReturnBillExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcBuyReturnBillDetail服务实现层接口
 *
 * @author Hillpool
 * @date 2022/07/29 15:00:45
 */
public interface JxcBuyReturnBillDetailService {

    /**
     * 描述：根据id获取JxcBuyReturnBillDetail
     *
     * @param id
     */
    JxcBuyReturnBillDetail getJxcBuyReturnBillDetailById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcBuyReturnBillDetail
     *
     * @param sid
     */
    JxcBuyReturnBillDetailExt queryBySid(String sid) throws Exception;

    List<JxcBuyReturnBillDetailExt> queryValidByReturnList(List<String> return_list);

    /**
     * 描述：根据sid列表删除JxcBuyReturnBillDetail
     *
     * @param list
     */
    void deleteJxcBuyReturnBillDetails(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcBuyReturnBillDetail
     *
     * @param record
     * @param opUser
     */
    void saveJxcBuyReturnBillDetail(JxcBuyReturnBillDetail record, SysUser opUser) throws Exception;

    void saveJxcBuyReturnBillDetail(JxcBuyReturnBillExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcBuyReturnBillDetail
     *
     * @param params
     * @param page
     */
    List<JxcBuyReturnBillDetailExt> findJxcBuyReturnBillDetails(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcBuyReturnBillDetail
     *
     * @param params
     */
    List<JxcBuyReturnBillDetailExt> findJxcBuyReturnBillDetails(Map<String, Object> params) throws Exception;

    void undateReturn2BuyOrder(List<String> return_bill_list) throws Exception;
}
